﻿' Copyright (c) Microsoft Corporation.  All rights reserved.

Imports MyTravelPostWebsite.MyTravelPostService

Partial Public Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            ' create a service and bind the blog entries to the blog grid
            Using myBlogService As New MyTravelPostServiceClient
                BlogGrid.DataSource = myBlogService.GetAllTravelBlogs
                BlogGrid.DataBind()
            End Using
        End If
    End Sub
End Class